﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Pb;
public class ShuffleCards : MonoBehaviour {

    public GameObject continueGameBtn;
    public GameObject shuffleCardsBtn;
	void Start () {
        UIEventListener.Get(continueGameBtn).onClick = ButtonClick;
        UIEventListener.Get(shuffleCardsBtn).onClick = ButtonClick;
	}


    void ButtonClick(GameObject button)
    {
        if (button.name == "ShuffleCardsBtn")
        {
            PaiShuffleRequest msg = new PaiShuffleRequest { };
            SocketManager socketManager = SocketManager.Instance;
            socketManager.SendProtobuf1(msg, MsgId.PaiShuffleRequest);
        }
        else if (button.name == "ContinueBtn")
        {
            
        }
        Destroy(gameObject);
    } 

}
